package com.xgimi.open.skill.datamanager.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.xgimi.commons.base.Result;
import com.xgimi.open.skill.datamanager.biz.service.EntryBizService;
import com.xgimi.open.skill.datamanager.service.api.EntryRpcService;
import com.xgimi.open.skill.datamanager.service.request.EntryReqDTO;
import com.xgimi.open.skill.datamanager.service.response.EntryRespDTO;
import com.xgimi.open.skill.datamanager.service.response.page.PageResult;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * @author coderzpw.zhang
 * @version 1.0
 * @description 描述
 * @date 2023/4/13 11:14
 */
@Service
public class EntryRpcServiceImpl implements EntryRpcService {
    @Autowired
    private EntryBizService entryBizService;

    @Override
    public Result<List<EntryRespDTO>> listByWordStockIds(List<Long> wordStockIds) {
        List<EntryRespDTO> ret = entryBizService.listByWordStockIds(wordStockIds);
        return new Result<>(ret);
    }

    @Override
    public Result<PageResult<EntryRespDTO>> pageQuery(EntryReqDTO entryReqDTO) {
        PageResult<EntryRespDTO> result = entryBizService.pageQuery(entryReqDTO);
        return new Result<>(result);
    }

}
